<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #name{
            background-image: url("3.jpeg");
            background-size: 20px 20px;
            background-repeat: no-repeat;/*是否平铺 默认为是*/
            background-position: 150px 0px;/*背景图片平铺开始位置*/
        }
        #myImg{
            display:flex;

        }

        #1{display: flex;
            width: 1200px;
          align-content: space-evenly;
            flex-wrap: wrap;
        }
        .mydiv{
            display: flex;
            margin: auto;
            width: 200px;
            height: 200px;
        }
    </style>
</head>
<body>
<input type="text" id="name">

<img src="1.jpg" width="300"height="300" id="myImg">
<div class="mydiv">

</div>
<div id="1">
    <div class="mydiv" style="background-color: #2a9fd2"></div>
    <div class="mydiv" style="background-color: red"></div>
    <div class="mydiv" style="background-color: blue"></div>
</div>

</body>
</html>